<template>
  <div
    class="rc-cont"
    style="min-height: 500px;padding-right: 10%;">
    <flexbox
      v-for="(item, index) in list"
      :key="index"
      class="ha-cont"
      align="stretch"
      justify="flex-start">
      <div class="ha-week">{{ item.time}} {{ item.time1}}</div>
      <div class="ha-circle" />
      <div class="ha-time">{{ item.time2}}</div>
      <!-- <rp-avatar
        :id="item.createUserId"
        :name="item.realname"
        :size="32"
        :src="item.img"
        :disabled="false"
        class="ha-img" /> -->
      <div class="ha-name">{{ item.realname }}</div>
      <div class="ha-content">
        <span
          v-for="(info, infoIndex) in item.content"
          :key="infoIndex">{{ info }}</span>
      </div>
      <div class="ha-line" />
    </flexbox>
  </div>
</template>

<script type="text/javascript">

export default {
  name: 'RelativeHandle', // 相关操作  可能再很多地方展示 放到客户管理目录下
  components: {},
  props: {},
  data() {
    return {
      list: [{time:'08-01',time1:'星期二',time2:'08-01',realname:'admin',content:['新建了联系人']},
      {time:'08-01',time1:'星期二',time2:'08-01',realname:'admin',content:['新建了联系人']},
      {time:'08-01',time1:'星期二',time2:'08-01',realname:'admin',content:['新建了联系人']}]
    }
  },
  computed: {},
  watch: {},
  mounted() {

  },
  methods: {

  }
}
</script>
<style lang="scss" scoped>
/** 客户下相关信息 table 效果 */
.rc-cont {
  position: relative;
  height: 100%;

  .rc-head {
    position: relative;
    margin-bottom: #{$--interval-base * 2};
    font-size: 0;
    text-align: right;
  }

  .margin-left-8 {
    margin-left: $--interval-base;
  }

  .margin-top-base2 {
    margin-top: #{$--interval-base * 2};
  }
}


.ha-cont {
  position: relative;
  min-height: 40px;
  padding-top: 3px;
  line-height: 20px;

  .ha-week {
    flex-shrink: 0;
    width: 90px;
    margin: 0 17px 0 10px;
  }

  .ha-time {
    flex-shrink: 0;
    width: 80px;
    padding: 0 10px 0 24px;
  }

  .ha-circle {
    z-index: 2;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background-color: white;
    border: 5px solid $--color-primary;
    border-radius: 9px;
  }

  .ha-img {
    display: block;
    flex-shrink: 0;
    margin: -3px 10px 0;
  }

  .ha-name {
    flex-shrink: 0;
    padding: 0 10px;
  }

  .ha-content {
    flex: 1;
    padding: 0 10px 10px;
  }

  .ha-line {
    position: absolute;
    top: 3px;
    bottom: -3px;
    left: 125px;
    z-index: 1;
    width: 1px;
    background-color: $--border-color-base;
  }
}
</style>
